<template>
  <div class="daily-container main">
    <div class="daily-header">
      <div class="inner">
        <span class="store-name">桔子酒店(上海浦江沈杜公路地铁站店)</span>
        <span class="robot-number">1台机器人</span>
      </div>
      <span class="address">上海市上海闵行区上海，沈杜公路3872号</span>
    </div>

    <div class="page-body">

      <nuxt-link to="user">
        <div class="info-card">
          <div class="left">
            <div class="flex">
              <span class="title">勘察人信息</span>
              <span class="tag-3 tag">已完成</span>
              <!-- <van-tag plain type="success">已完成</van-tag> -->
            </div>
            <span class="tip">勘察人姓名、电话</span>
          </div><!-- .left end -->
          <div class="button">
            <span>去修改</span>
            <van-icon name="arrow" />
          </div>
        </div><!-- .info-card end -->
      </nuxt-link>

      <nuxt-link to="base">
        <div class="info-card">
          <div class="left">
            <div class="flex">
              <span class="title">基本信息</span>
              <span class="tag-3 tag">已完成</span>
            </div>
            <span class="tip">酒店楼层、走廊等基础信息</span>
          </div><!-- .left end -->
          <div class="button">
            <span>去修改</span>
            <van-icon name="arrow" />
          </div>
        </div><!-- .info-card end -->
      </nuxt-link>

      <!--<nuxt-link to="user">
        <div class="info-card">
          <div class="left">
            <div class="flex">
              <span class="title">供电/信号信息</span>
              <span class="tag-3 tag">已完成</span>
            </div>
            <span class="tip">机器人、电话模块供电信息</span>
          </div>
          <div class="button">
            <span>去修改</span>
            <van-icon name="arrow" />
          </div>
        </div>
      </nuxt-link>-->

      <nuxt-link to="elevator">
        <div class="info-card">
          <div class="left">
            <div class="flex">
              <span class="title">电梯信息</span>
              <span class="tag-3 tag">已完成</span>
            </div>
            <span class="tip">电梯相关信息</span>
          </div><!-- .left end -->
          <div class="button">
            <span>去修改</span>
            <van-icon name="arrow" />
          </div>
        </div><!-- .info-card end -->
      </nuxt-link>

    </div><!-- .page-body end -->

  </div><!-- .main end -->
</template>
<script>
import { today, getWeek } from '@/utils/helpers'
export default {
  layout: 'blank',
  data() {
    return {
      dailys: {},
      listQuery: {
        page: 1,
        limit: 20
      },
      date: today(),
      day: getWeek()
    }
  }
}
</script>
<style lang="scss" scoped>
.daily-container{
  // padding-top:50px;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  img {
      width: 100%;
  }
  .daily-header{
    box-sizing: border-box;
    width: 100vw;
    height: 21.33333vw;
    padding: 3.73333vw 6.13333vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(90deg,#0075ff,#85bdff);
    .inner {
      display: flex;
      align-items: center;
      .store-name {
          max-width: 53.33333vw;
          height: 7.46667vw;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-size: 5.33333vw;
          font-weight: 600;
          color: #fff;
          line-height: 7.46667vw;
      }
      .robot-number {
        margin-left: 2.13333vw;
        height: 5.86667vw;
        padding: 0 1.6vw;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #5da8ff;
        border-radius: 1.06667vw;
        font-size: 3.2vw;
        font-weight: 400;
        color: #feffff;
      }
    }
    .address {
      width: 100%;
      height: 5.33333vw;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 3.73333vw;
      font-weight: 400;
      color: #aad8ff;
      line-height: 5.33333vw;
    }
  }
  .page-body {
    box-sizing: border-box;
    padding: 3.2vw;
    .info-card {
      box-sizing: border-box;
      width: 93.6vw;
      height: 20.26667vw;
      padding: 4.26667vw 5.33333vw;
      margin-bottom: 3.2vw;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #fff;
      border-radius: 2.13333vw;
      .left {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        .title {
          height: 5.6vw;
          font-size: 4vw;
          font-weight: 600;
          color: #182a41;
          line-height: 5.6vw;
        }
        .tag {
          width: 12.8vw;
          height: 4.8vw;
          display: flex;
          justify-content: center;
          align-items: center;
          margin-left: 1.6vw;
          border-radius: .8vw;
          font-size: 3.2vw;
          font-weight: 400;
        }
        .tag-3 {
          color: #02b511;
          background: rgba(2,181,17,.1);
        }
        .tip {
          margin-top: 1.6vw;
          height: 5.33333vw;
          font-size: 3.73333vw;
          font-weight: 400;
          color: #798398;
          line-height: 5.33333vw;
        }
      }
      .button {
        box-sizing: border-box;
        height: 8.53333vw;
        padding: 0 2.66667vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f5f7fa;
        border-radius: 4.26667vw;
        font-size: 3.73333vw;
        font-weight: 400;
        color: #798398;
      }

    }
  }
  .flex{
    display: flex;
    align-items: center;
  }
}
</style>
